package P3_4;

import java.util.Scanner;

public class tester {
public static void main(String[] args){
	//start scanner	
	Scanner in = new Scanner(System.in);
	
	//prompt for values
	System.out.println("For testing type values 2 and 4");
	System.out.print("Enter value 1: ");
	double val1=in.nextDouble();
	System.out.print("Enter value 2: ");
	double val2=in.nextDouble();	
	
	//construct Pair calculator
	Pair pair1= new Pair (val1, val2);
	
	//Testing
	System.out.println("Sum = "+pair1.getSum());
	System.out.println("Expected : 6");
	System.out.println("Difference = "+pair1.getDiff());
	System.out.println("Expected : -2");
	System.out.println("Product = "+pair1.getProd());
	System.out.println("Expected : 8");
	System.out.println("Sum = "+pair1.getAvr());
	System.out.println("Expected : 3");
	System.out.println("Sum = "+pair1.getDist());
	System.out.println("Expected : 2");
	System.out.println("Sum = "+pair1.getMax());
	System.out.println("Expected : 4");
	System.out.println("Sum = "+pair1.getMin());
	System.out.println("Expected : 2");
	System.out.println(pair1.getSum(5,5));





}
}
